#ifndef FOODODERWINDOW_H
#define FOODODERWINDOW_H

#include <QWidget>
#include <QListWidget>
#include "Food.h"
#include "FoodOrderTable.h"
#include "FoodTable.h"

namespace Ui {
class FoodOderWindow;
}

class FoodOderWindow : public QListWidget
{
    Q_OBJECT

public:
    explicit FoodOderWindow(QWidget *parent = nullptr);
    ~FoodOderWindow();

signals:
    void showWelcomWindow();    //显示欢迎界面
    void showShopCartWindow();  //显示购物车界面
    void signal_add_intoshop_cart(Food food); //通知购物车界面

private:
    Ui::FoodOderWindow *ui;

private slots:
    void replyShowFoodOrder();  //从欢迎界面跳转到订餐界面
    void on_back_btn_clicked(); //返回按钮点击事件:返回欢迎界面
    void data_changed();    //刷新ui
    void on_buy_cart_btn_clicked(); //点击添加购物车按钮
    void add_into_shop_cart(Food food); //添加进购物车
};

#endif // FOODODERWINDOW_H
